import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';

@Schema()
export class DeviceHeart extends Document {
  @Prop()
  simCardNo: string;

  @Prop()
  timestamp: number;

  @Prop()
  updateTime: number;
}

export type DeviceHeartDocument = DeviceHeart & Document;

export const DeviceHeartSchema = SchemaFactory.createForClass(DeviceHeart);